Advent of code day 3 solution